body {
    background-color: #fff;
    color: #eee;
    padding: 10px 20px;
    font-family: "Microsoft YaHei", sans-serif;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1;
    position: relative;
    bottom: 0.15em;
    color: #333;
}

h3 {
    color: #444;
    margin-bottom: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    margin-top: 15px;
    margin-bottom: 8px;
}

.role-container,
.monster-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.frame {
    background-color: #222;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    text-align: center;
    flex-shrink: 0;
    width: 160px;
    /* 稍大一点，行内一排8个还能放下 */
}

.name-label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-img,
.monster-img {
    width: 100%;
    height: auto;
    aspect-ratio: 376 / 512;
    object-fit: contain;
    border: 2px solid #555;
    border-radius: 6px;
    background-color: transparent;
    user-select: none;
}

.monster-img {
    opacity: 0.5;
    /* 默认半透明 */
    transition: opacity 0.3s ease;
}

.monster-img.revealed {
    opacity: 1;
    /* 选中后不透明 */
}

.btn-sm {
    font-size: 0.8rem;
    padding: 3px 8px;
}

button.btn-primary {
    margin-top: 6px;
    width: 100%;
}

button.btn-danger {
    margin-top: 0;
    width: auto;
}